<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* body {
            display: flex;
            justify-content: center;
            align-items: center;
        } */

        #box {
            width: 200px;
            height: 200px;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <div id="box"></div>
    <div>吴双烨</div>
    <div>aaa</div>
    <script>
        const box = document.getElementById('box')
        const r = Math.floor(Math.random() * 256)
        const g = Math.floor(Math.random() * 256)
        const b = Math.floor(Math.random() * 256)
        box.style.backgroundColor = `rgb(${r},${g},${b})`

    </script>
</body>

</html>